				<div class="section">
                <script type="text/javascript">
					function check(){
						if(confirm('Are you sure ?')){
							return true;
						}else{
							return false;
						}
					}
				</script>
                <style type="text/css">
				.greenbold{color:#060;font-weight:bold}
				.redbold{color:#F00;font-weight:bold}
				</style>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Agency confirm</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
                            <ul class="table_tabs">
                            	<li><a href="javascript:void(0)" name="tab1" class="selected"><span><span>List</span></span></a></li>
								<li><a href="javascript:void(0)" name=""><span><span>Search</span></span></a></li>
								<li><a href="javascript:void(0)" name=""><span><span>Add </span></span></a></li>
							</ul>
							</div>
							<div class="table_wrapper">
								<div class="table_wrapper_inner" id="tab1">
                            <form action="" method="post" name="sac">
								<table cellpadding="0" cellspacing="0" width="905">
									<tbody><tr>
                                        <th width="26">Stt.</th>
                                        <th width="244">Cruise name</th>
                                        <th width="209">Agency name</th>
                                        <th width="226">Date time</th>
                                        <th width="123">Status</th>
                                        <th width="75">Actions</th>
									</tr>
                               <?php
							   	$stt = 0;
								if(isset($listall) && $listall != NULL){
									foreach($listall as $items){
										$stt++;
										echo "<tr>";	
										echo "<td>$stt</td>";
										if($items['active'] == 1){
                                            echo "<td class='greenbold'>".$items['sheep_name']."</td>";
                                        }else{
											echo "<td class='redbold'>".$items['sheep_name']."</td>";
										}
										echo "<td>".$items['username']."</td>";
										echo "<td>".$items['datetime']."</td>";
                                        if($items['active'] == 1){
                                            echo "<td><a href='".base_url()."admin/ageinfo/active/$items[id]/1' onclick='return check()' class='greenbold' style='color:#060'>Active</a></td>";
                                        }else{
                                            echo "<td><a href='".base_url()."admin/ageinfo/active/$items[id]/1' onclick='return check()' class='redbold' style='color:#F00'>Not active</a></td>";
                                        }
										echo "<td>";
												echo "<div class='actions_menu'><ul>";
													echo "<li><a href='".base_url()."admin/ageinfo/views/$items[id]' class='edit' target='_blank'>View</a></li>";
													echo "<li><a href='".base_url()."admin/ageinfo/del/$items[id]' class='delete' onclick='return check()'>Del</a></li>";
												echo "</ul></div>";
											echo "</td>";

										echo "</tr>";
									}
								}else{
									echo "<tr>";	
									echo "<td colspan='6'>No information</td>";
									echo "</tr>";
								}
									?>
								</tbody></table>
                            </form>
                            	<div id="pagination"><?php  echo $this->pagination->create_links();?></div>
							</div>
                            <div class="table_wrapper_inner" id="tab2">
                            	<div class="form_user">
                            	<form action="javascript:void(0)">
                                	<div class="form_items">
                                    	<div class="form_item_left">Tiêu đề tin</div>
                                        <div class="form_item_right"><input type="text" id="keyword" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_item_left">&nbsp;</div>
                                        <div class="form_item_right"><input type="submit" id="ok" value="Tìm kiếm" class="padding" /></div>
                                    </div>
                                </form>
                                </div>
                                <div id="user_show"></div>
                            </div>
						</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<!--[if !IE]>start pagination<![endif]-->
							<div class="pagination_wrapper">
							<span class="pagination_top"></span>
							<div class="pagination_middle">
							<div class="pagination">
							</div>
							</div>
							<span class="pagination_bottom"></span>
							</div>
						<!--[if !IE]>end pagination<![endif]-->
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>